<template>
  <div>
    <button @click="isShow=!isShow">显示0隐藏</button>
    <transition-group
        :appear="true"
        name="animate__animated animate__bounce"
        enter-active-class="animate__bounceInDown"
        leave-active-class="animate__rotateOut">
      <h1 v-show="!isShow" key="1">你好呀</h1>
      <h1 v-show="isShow" key="2">阳光同志</h1>
    </transition-group>
  </div>
</template>

<script>
//$ npm install animate.css --save
import 'animate.css'//一个css动画库

export default {
  name: "Test3",
  data() {
    return {
      isShow: true
    }
  }

}
</script>

<style scoped>
h1 {
  background: #35e70d;
}

</style>